﻿using Admin.Core.Common.BaseModel;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Admin.Core.Model.Warehouse
{
    /// <summary>
    /// 库存 出库
    /// </summary>
    [Table(Name = "ST_STOCKOUT")]
    public class StockOutEntity : EntityBase
    {
        /// <summary>
        /// 出库批次
        /// </summary>
        [Column(Name = "OUTSTORAGEBATCHCODE")]
        public string OutStorageBatchCode { get; set; }


        /// <summary>
        /// 生产批次
        /// </summary>
        [Column(Name = "PRODUCTBATCHCODE")]
        public string ProductBatchCode { get; set; }

        /// <summary>
        /// 入库批次
        /// </summary>
        [Column(Name = "STOCKINID")]
        public long StockInId { get; set; }
        public StockInEntity StockIn { get; set; }
        /// <summary>
        /// 出库时间
        /// </summary>
        [Description("出库时间")]
        [Column(Name = "OUTSTORAGEDATE")]
        public DateTime? OutStorageDate { get; set; }


        /// <summary>
        /// 设备号
        /// </summary>
        [Description("设备号")]
        [Column(Name = "MACHINEID")]
        public long? MachineId { get; set; }

        /// <summary>
        /// 领用人
        /// </summary>
        [Description("领用人")]
        [Column(Name = "RECIPIENTS")]
        public long? Recipients { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        [Description("数量")]
        [Column(Name = "NUM")]
        public long Num { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Column(Name = "REMARK")]//
        public string Remark { get; set; }

    }
}
